export const rules = {
  email: [
    {
      required: true,
      message: 'email is required',
      trigger: 'blur'
    },
    {
      pattern:
        /^[A-Za-z\d]+([-_.][A-Za-z\d]+)*@([A-Za-z\d]+[-.])+[A-Za-z\d]{2,5}$/,
      message: 'please confirm the email format',
      trigger: 'blur'
    }
  ],
  hash: [
    {
      required: true,
      message: 'password is required',
      trigger: 'blur'
    },
    {
      pattern: /^[a-z0-9]{3,}$/,
      message: 'password must be more than three letters or numbers',
      trigger: 'blur'
    }
  ]
}
